package cn.virens.util.poi.exception;

import org.apache.poi.ss.usermodel.Cell;

public class ReadExcelException extends ExcelCellException {
	private static final long serialVersionUID = -8860082257323255143L;
	private Object object;

	public ReadExcelException(Object object, Cell cell, String message) {
		this(object, cell, message, null);
	}

	public ReadExcelException(Object object, Cell cell, String message, Throwable cause) {
		super(cell, message, cause);

		this.object = object;
	}

	public ReadExcelException(Object object, int cell, int row, String message) {
		this(object, cell, row, message, null);
	}

	public ReadExcelException(Object object, int cell, int row, String message, Throwable cause) {
		super(cell, row, message, cause);

		this.object = object;
	}

	public Object getObject() {
		return object;
	}
}
